#ifndef __C_GUI_PROGRESSBAR_H_INCLUDED__  
#define __C_GUI_PROGRESSBAR_H_INCLUDED__

#include "IGUIProgressBar.h"
#include "IGUISkin.h"
#include "IGUIEnvironment.h"
#include "IVideoDriver.h"
namespace irr
{
    namespace gui
    {
        class CGUIProgressBar : public IGUIProgressBar 
        {
        public:
            CGUIProgressBar(bool horizontal, bool border, bool background, IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle);
            ~CGUIProgressBar();
            virtual void draw();
            virtual void setMax(s32 m = 100);
            virtual void setPos(s32 p = 0);
            virtual void setColorBack(video::SColor color = video::SColor(1, 0, 0, 0));
            virtual void setColorFront(video::SColor color = video::SColor(255, 0, 0, 255));
            virtual void setColorText(video::SColor color = video::SColor(255, 255, 255, 255));
            virtual void setFontText(IGUIFont* font = 0);
        private:
            bool dHorizontal;
            bool dBorder;
            bool dBackground;
            s32 pMax;
            s32 pPos;
            video::SColor cBack;
            video::SColor cFront;
            video::SColor cText;
            IGUIFont* oFont;
        };
    }
}
#endif
